package by.dkusch.aircompany.model.tables;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import by.dkusch.aircompany.model.tables.base.BaseEntity;

@Entity
public class PlaneType extends BaseEntity<Long> {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@NotNull
	@Size(max = 30)
	@Column
	private String code;

	@Size(max = 50)
	@Column
	private String name;

	@Min(0)
	@Max(Integer.MAX_VALUE)
	@NotNull
	@Column
	private Integer passClass1;

	@Min(0)
	@Max(Integer.MAX_VALUE)
	@NotNull
	@Column
	private Integer passClass2;

	@Min(0)
	@Max(Integer.MAX_VALUE)
	@NotNull
	@Column
	private Integer passClass3;

	@Min(0)
	@Max(Integer.MAX_VALUE)
	@NotNull
	@Column
	private Integer crewCount;

	@Column
	private Double length;

	@Column
	private Double weight;

	@Size(max = 250)
	@Column
	private String description;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getPassClass1() {
		return passClass1;
	}

	public void setPassClass1(Integer passClass1) {
		this.passClass1 = passClass1;
	}

	public Integer getPassClass2() {
		return passClass2;
	}

	public void setPassClass2(Integer passClass2) {
		this.passClass2 = passClass2;
	}

	public Integer getPassClass3() {
		return passClass3;
	}

	public void setPassClass3(Integer passClass3) {
		this.passClass3 = passClass3;
	}

	public Integer getCrewCount() {
		return crewCount;
	}

	public void setCrewCount(Integer crewCount) {
		this.crewCount = crewCount;
	}

	public Double getLength() {
		return length;
	}

	public void setLength(Double length) {
		this.length = length;
	}

	public Double getWeight() {
		return weight;
	}

	public void setWeight(Double weight) {
		this.weight = weight;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}
